package cn.terminus.service.customer.kafka;

import cn.terminus.result.common.context.TerminusCallContext;
import cn.terminus.result.common.util.TerminusDateUtils;
import lombok.Data;

@Data
public class KafkaSettledEnterpriseParam extends StatisticsBase {

    /**
     * 入驻企业量
     */
    private Integer companyNum;

    public static KafkaSettledEnterpriseParam setSettleEnterpriseMessage(TerminusCallContext context, Integer num) {
        KafkaSettledEnterpriseParam param = new KafkaSettledEnterpriseParam();
        param.setBusinessId(context.getBusiness().getBusinessId());
        param.setDataTime(TerminusDateUtils.getDate10YMD());
        param.setCompanyNum(num);
        return param;
    }

}
